﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PhongTroThem.ascx.cs" Inherits="Webmau.Admin.PhongTroThem" %>
<style type="text/css">
    .style1
    {
        width: 113px;
        border: thin groove black;
    }
    .style2
    {
        width: 488px;
        border: thin groove black;
    }
    .style3
    {
        width: 113px;
        border: thin groove black;
        height: 30px;
    }
    .style4
    {
        width: 488px;
        border: thin groove black;
        height: 30px;
    }
    .style5
    {
        height: 30px;
    }
</style>
<table style="width: 670px">
    <tr>
        <td class="style1">
            Địa điểm
        </td>
        <td class="style2">
            <asp:DropDownList ID="drDiaDiem" runat="server">
             <asp:ListItem Value="0">-- Địa điểm --</asp:ListItem> 
            </asp:DropDownList>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td class="style1">
            Tên
        </td>
        <td class="style2">
            <asp:TextBox ID="txtTen" runat="server" Width="176px"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="rdTen" runat="server" ErrorMessage="*" 
                ControlToValidate="txtTen"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Thông tin
        </td>
        <td class="style4">
            <asp:TextBox ID="txtThongTin" runat="server" Height="102px" 
                TextMode="MultiLine" Width="454px"></asp:TextBox>
        </td>
        <td class="style5">
            <asp:RequiredFieldValidator ID="rqThongTin" runat="server" ErrorMessage="*" 
                ControlToValidate="txtThongTin"></asp:RequiredFieldValidator>
        </td>
        <tr>
            <td class="style1">
                Giá phòng
            </td>
            <td class="style2">
                <asp:TextBox ID="txtGiaPhong" runat="server" Width="179px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="rqGiaPhong" runat="server" 
                    ErrorMessage="*" ControlToValidate="txtGiaPhong"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Hình phòng trọ</td>
            <td class="style2">
                <asp:FileUpload ID="FileUpload1" runat="server" oninit="FileUpload1_Init" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                Tình trạng</td>
            <td class="style2">
                <asp:CheckBox ID="cbTinhTrang" runat="server" Text="Hiện thị trang chủ" />
            </td>
            <td>
            </td>
        </tr>
    </tr>
</table>
<asp:Button ID="btnThem" runat="server" Text="Thêm" Width="79px" 
    onclick="btnThem_Click" />

<asp:Label ID="lbThongBao" runat="server"></asp:Label>


